package com.amigo.online.provider.manager.controller;

import javax.annotation.Resource;

import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.amigo.online.common.base.controller.BaseController;
import com.amigo.online.common.core.response.Response;
import com.amigo.online.provider.manager.model.entity.MerchantManagerTbl;
import com.amigo.online.provider.manager.service.MerchantManagerTblService;

@RestController
@RequestMapping(value = "/merchantManagerTbl", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MerchantManagerTblController extends BaseController {

    @Resource
    private MerchantManagerTblService merchantManagerTblService;

    @PostMapping(value = "/getMerchantManagerTbl")
    public ResponseEntity<Response> getMerchantAdvTblList(@RequestBody MerchantManagerTbl merchantManagerTbl) {
        return success(merchantManagerTblService.findMerchantManagerTblList(merchantManagerTbl));
    }

}
